//
// Created by Kan Zheng on 11/10/2017.
//
#include "com_kandroid_helloandroidjni_NdkMathTest.h"

/*
 * Class:     com_kandroid_helloandroidjni_NdkMathTest
 * Method:    add
 * Signature: (II)I
 */
JNIEXPORT jint JNICALL Java_com_kandroid_helloandroidjni_NdkMathTest_add
        (JNIEnv *env, jclass clazz, jint a, jint b) {
    return a + b;
}

/*
 * Class:     com_kandroid_helloandroidjni_NdkMathTest
 * Method:    subtract
 * Signature: (II)I
 */
JNIEXPORT jint JNICALL Java_com_kandroid_helloandroidjni_NdkMathTest_subtract
        (JNIEnv *env, jclass clazz, jint a, jint b) {
    return a - b;
}

